import Vue from 'vue'
import App from './App'
import store from './store'
import plugin from './js_sdk/uni-admin/plugin'
Vue.config.productionTip = false
Vue.use(plugin)

import axios from 'axios'
//BT后台
// axios.defaults.baseURL = 'http://112.74.171.233:80/';
//0.1后台
axios.defaults.baseURL = 'http://106.55.19.184:80/';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
Vue.prototype.$axios= axios
var tmpaxios= axios.create({
	baseURL: 'http://localhost:3000',
	timeout: 2000
})
tmpaxios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
tmpaxios.myrequest = function(post,path,options,success){
	tmpaxios.defaults.baseURL = 'http://'+post+':3001/';
	tmpaxios.post(path,options)//传参
	.then(function(res){
		  success(res)
	})
	.catch(function(err){
		  console.log("请求失败233");
	});
}
Vue.prototype.$tmpaxios= tmpaxios
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

App.mpType = 'app'

const app = new Vue({
    store,
	
    ...App
})
app.$mount()
